.class Limoblife/yogamoment/lite/MainActivity$23;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Landroid/widget/SeekBar$OnSeekBarChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Limoblife/yogamoment/lite/MainActivity;->updateMusicPross()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Limoblife/yogamoment/lite/MainActivity;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/MainActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    .line 1215
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onProgressChanged(Landroid/widget/SeekBar;IZ)V
    .locals 6
    .parameter "seekBar"
    .parameter "progress"
    .parameter "fromUser"

    .prologue
    .line 1230
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v2, v2, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    if-eqz v2, :cond_1

    .line 1231
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v2, v2, Limoblife/yogamoment/lite/PlayControl;->homeplay:Landroid/widget/CheckBox;

    invoke-virtual {v2}, Landroid/widget/CheckBox;->isChecked()Z

    move-result v2

    if-eqz v2, :cond_1

    .line 1233
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v2, v2, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 1234
    invoke-virtual {v2}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0

    .line 1236
    .local v0, mMax:I
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->musicPross:Landroid/widget/SeekBar;

    invoke-virtual {v2}, Landroid/widget/SeekBar;->getMax()I

    move-result v1

    .line 1238
    .local v1, sMax:I
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-boolean v2, v2, Limoblife/yogamoment/lite/MainActivity;->istouch:Z

    if-eqz v2, :cond_0

    .line 1239
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v2, v2, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 1240
    mul-int v3, v0, p2

    div-int/2addr v3, v1

    .line 1239
    invoke-virtual {v2, v3}, Landroid/media/MediaPlayer;->seekTo(I)V

    .line 1243
    :cond_0
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->leftTextView:Landroid/widget/TextView;

    .line 1244
    iget-object v3, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v4, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v4, v4, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v4, v4, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 1245
    invoke-virtual {v4}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v4

    .line 1244
    #calls: Limoblife/yogamoment/lite/MainActivity;->getPlayTime(I)Ljava/lang/String;
    invoke-static {v3, v4}, Limoblife/yogamoment/lite/MainActivity;->access$8(Limoblife/yogamoment/lite/MainActivity;I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1246
    iget-object v2, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v2, v2, Limoblife/yogamoment/lite/MainActivity;->rightTextView:Landroid/widget/TextView;

    .line 1247
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "-"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 1248
    iget-object v4, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v5, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    iget-object v5, v5, Limoblife/yogamoment/lite/MainActivity;->playControl:Limoblife/yogamoment/lite/PlayControl;

    iget-object v5, v5, Limoblife/yogamoment/lite/PlayControl;->mediaPlayer:Landroid/media/MediaPlayer;

    .line 1249
    invoke-virtual {v5}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v5

    sub-int v5, v0, v5

    .line 1248
    #calls: Limoblife/yogamoment/lite/MainActivity;->getPlayTime(I)Ljava/lang/String;
    invoke-static {v4, v5}, Limoblife/yogamoment/lite/MainActivity;->access$8(Limoblife/yogamoment/lite/MainActivity;I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 1247
    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 1252
    .end local v0           #mMax:I
    .end local v1           #sMax:I
    :cond_1
    return-void
.end method

.method public onStartTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 2
    .parameter "seekBar"

    .prologue
    .line 1223
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    const/4 v1, 0x1

    iput-boolean v1, v0, Limoblife/yogamoment/lite/MainActivity;->istouch:Z

    .line 1225
    return-void
.end method

.method public onStopTrackingTouch(Landroid/widget/SeekBar;)V
    .locals 2
    .parameter "seekBar"

    .prologue
    .line 1219
    iget-object v0, p0, Limoblife/yogamoment/lite/MainActivity$23;->this$0:Limoblife/yogamoment/lite/MainActivity;

    const/4 v1, 0x0

    iput-boolean v1, v0, Limoblife/yogamoment/lite/MainActivity;->istouch:Z

    .line 1220
    return-void
.end method
